import request from "@/utils/request";

// 查询还款信息明细列表
export function listBizLoanBillDetail(query) {
  return request({
    url: "/biz/bizLoanBillDetail/list",
    method: "get",
    params: query,
  });
}

// 查询还款信息明细详细
export function getBizLoanBillDetail(id) {
  return request({
    url: "/biz/bizLoanBillDetail/" + id,
    method: "get",
  });
}

// 新增还款信息明细
export function addBizLoanBillDetail(data) {
  return request({
    url: "/biz/bizLoanBillDetail",
    method: "post",
    data: data,
  });
}

// 修改还款信息明细
export function updateBizLoanBillDetail(data) {
  return request({
    url: "/biz/bizLoanBillDetail",
    method: "put",
    data: data,
  });
}

// 删除还款信息明细
export function delBizLoanBillDetail(id) {
  return request({
    url: "/biz/bizLoanBillDetail/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizLoanBillDetail/findMaxSort",
    method: "get",
  });
}
// 导出还款信息明细
export function exportBizLoanBillDetail(query) {
  return request({
    url: "/biz/bizLoanBillDetail/export",
    method: "get",
    params: query,
  });
}

// 修改逾期状态
export function updateLoanBillDetailOverDue(data) {
  return request({
    url: "/biz/bizLoanBillDetail/updateLoanBillDetailOverDue",
    method: "post",
    data: data,
  });
}
